package com.zl.study.mybatis.demo.entity;

public class Author {

  private Integer id;
  private String username;
  private String password;
  private String email;
  private String bio;
  private Section favoriteSection;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getBio() {
    return bio;
  }

  public void setBio(String bio) {
    this.bio = bio;
  }

  public Section getFavoriteSection() {
    return favoriteSection;
  }

  public void setFavoriteSection(Section favoriteSection) {
    this.favoriteSection = favoriteSection;
  }

  @Override
  public String toString() {
    return "Author: " + id + " : " + username + " : " + email;
  }
}
